-
Notifications
You must be signed in to change notification settings - Fork 720
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UTxO-HD targeting main #6068
base: master
Are you sure you want to change the base?
UTxO-HD targeting main #6068
Conversation
This enables tracking of peers that have upgraded, but makes no other difference
* ConsensusMode * MinBigLedgerPeersForTrustedState
- Categorise `LedgerDB.SnapshotMissingChecksum` trace as `Warning` - Expose snapshot checksum switch in config file
…dsToShelleyBasedEra
This change introduces support for big ledger peers in the node. A new optional entry in network topology JSON parser is added that is intended to point to a path containing a serialized snapshot of big ledger peers taken from some slot a priori. When present, this file is decoded at node startup, or when a SIGHUP is triggered, and made available to the diffusion layer via reading from a TVar.
Avoid build plan failures with newer ghc's
There's a problem with `unix` and `filepath`
ea5ecaa
to
af2e523
Compare
npcTestBabbageHardForkAtEpoch, | ||
npcTestBabbageHardForkAtVersion, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice 👍
Nothing -> Consensus.TriggerHardForkAtVersion | ||
(maybe 4 fromIntegral npcTestMaryHardForkAtVersion) | ||
Just epochNo -> Consensus.TriggerHardForkAtEpoch epochNo | ||
Nothing -> Consensus.CardanoTriggerHardForkAtDefaultVersion |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can abstract this out as a function but this is not a blocker.
"Praos" | ||
-> pure $ NodeConsensusMode PraosMode | ||
_ -> fail "Parsing NodeConsensusMode failed: can be either 'Genesis' or 'Praos'" | ||
parseJSON _ = fail "Parsing NodeConsensusMode failed" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Returning the unexpected JSON will help with debugging.
@@ -302,20 +299,9 @@ findAllUtxos | |||
-> ShelleyBasedEra era | |||
-> m (Map TxIn (TxOut CtxUTxO era)) | |||
findAllUtxos epochStateView sbe = withFrozenCallStack $ do | |||
AnyNewEpochState sbe' newEpochState <- getEpochState epochStateView | |||
AnyNewEpochState sbe' _ tbs <- getEpochState epochStateView |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cardano-testnet/test/cardano-testnet-test/Cardano/Testnet/Test/Cli/Query.hs
Show resolved
Hide resolved
9024627
to
fcd6d20
Compare
fcd6d20
to
f99dd7f
Compare
Co-authored-by: Pablo Lamela <[email protected]>
Description
Implements the changes required for UTxO-HD Consensus feature. See the documentation for an extensive explanation on what changed and the implications.
Checklist
See Runnings tests for more details
CHANGELOG.md
for affected package.cabal
files are updatedhlint
. See.github/workflows/check-hlint.yml
to get thehlint
versionstylish-haskell
. See.github/workflows/stylish-haskell.yml
to get thestylish-haskell
versionghc-8.10.7
andghc-9.2.7